package org.company.management;

import org.company.management.ui.MenuView;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

/**
 * @author Paner
 *
 */
public class Perspective implements IPerspectiveFactory {

	public void createInitialLayout(IPageLayout layout) {
		//Add view to perspective
		//layout.addView(MAIN_VIEW_ID, IPageLayout.LEFT, IPageLayout.RATIO_MIN, IPageLayout.ID_EDITOR_AREA);
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(true);
		layout.setFixed(true);
		layout.addStandaloneView(MenuView.ID,  false, IPageLayout.LEFT, 0.2f, editorArea);
		//layout.addStandaloneView(GanttView.ID,  false, IPageLayout.LEFT, 0.8f, editorArea);
	}
}
